
package timeitj.ejb.groups;

import javax.ejb.Local;
import timeitj.ejb.*;
import timeitj.ejb.persistence.PersistenceManager;
import timeitj.persistence.Group;


/**
 * This is the business interface for GroupManager enterprise bean.
 */
@Local
public interface GroupManager extends PersistenceManager<Group, Long> {
    /**
     * 
     * Returns the Group with the given name. 
     * Returns the Group with the name given as argument or null if no such role exists
     */
    Group getGroupByName(String name);

  
    /**
     * create a Group of a given name
     */
    Group createGroup(String name);
    
}
